<script>
// import { ref, reactive, onMounted} from "vue";
// const lay_type1 = ref(0);
// const lay_type2 = ref(0);
// const lay_type3 = ref(0);
// const Click1 = () => {
//     const box2rightcontent = document.getElementById("box2rightcontent")
//     box2rightcontent.className = "box2rightcontent1"
// }
// const Click2 = () => {
//     const box2rightcontent = document.getElementById("box2rightcontent");
//     box2rightcontent.className = "box2rightcontent2";

// }
// const Click3 = () => {
//     const box2rightcontent = document.getElementById("box2rightcontent");
//     box2rightcontent.className = "box2rightcontent3";

// }
// const layOut1 = () => {
//     if (this.lay_type1 == 0) {
//         this.lay_type1 = 1

//         this.lay_type2 = 0
//         this.lay_type3 = 0
//     } else {
//         this.lay_type1 = 0
//     }
// }
// const layOut2 = () => {
//     if (this.lay_type2 == 0) {
//         this.lay_type2 = 1

//         this.lay_type1 = 0
//         this.lay_type3 = 0
//     } else {
//         this.lay_type2 = 0
//     }
// }
// const layOut3 = () => {
//     if (this.lay_type3 == 0) {
//         this.lay_type3 = 1

//         this.lay_type2 = 0
//         this.lay_type1 = 0
//     } else {
//         this.lay_type3 = 0
//     }
// }
export default {
    setup() {

    },
    data() {
        return {
            lay_type1: 0,
            lay_type2: 0,
            lay_type3: 0
        }
    },
    methods: {

        Click1() {
            // console.log('Click1');
            const box2rightcontent = document.getElementById("box2rightcontent")
            box2rightcontent.className = "box2rightcontent1"

        },
        Click2() {
            // console.log('Click2');
            const box2rightcontent = document.getElementById("box2rightcontent");
            box2rightcontent.className = "box2rightcontent2";

        },
        Click3() {
            // console.log('Click3');
            const box2rightcontent = document.getElementById("box2rightcontent");
            box2rightcontent.className = "box2rightcontent3";

        },
        layOut1() {
            if (this.lay_type1 == 0) {
                this.lay_type1 = 1

                this.lay_type2 = 0
                this.lay_type3 = 0
            } else {
                this.lay_type1 = 0
            }
        },
        layOut2() {
            if (this.lay_type2 == 0) {
                this.lay_type2 = 1

                this.lay_type1 = 0
                this.lay_type3 = 0
            } else {
                this.lay_type2 = 0
            }
        },
        layOut3() {
            if (this.lay_type3 == 0) {
                this.lay_type3 = 1

                this.lay_type2 = 0
                this.lay_type1 = 0
            } else {
                this.lay_type3 = 0
            }
        }
    }
};
</script>

<template>
    <div id="box">
        <div class="swiper">
            <t-swiper class="tdesign-demo-block--swiper" :duration="300" :interval="2000">
                <t-swiper-item v-for="item in 6" :key="item">
                    <div class="demo-item"><img src="../assets/sucai/banner2.png" alt=""></div>
                </t-swiper-item>
            </t-swiper>
        </div>

        <div class="box2">
            <div class="box2left">
                <div class="box2left1">
                    <div class="box2left1-1">快速导航</div>
                    <div class="box2left1-2">Quick navigation</div>
                </div>
                <div class="box2left2">
                    <div class="box2left2-1">院部简介</div>
                </div>
            </div>
            <div class="box2right">
                <div class="box2righttop">
                    <div class="box2righttop-left">
                        <div class="box2righttop-left1"><img src="../assets/sucai/jianjie.png" /></div>
                        <div class="box2righttop-left2">院部简介</div>
                    </div>
                    <div class="box2righttop-center">当前位置:&nbsp;&nbsp;&nbsp;首页&nbsp;&nbsp;&nbsp;院部简介</div>
                    <div class="box2righttop-right">
                        <div class="box2righttop-right1"><input type="text" placeholder="输入关键词搜索"></div>
                        <div class="box2righttop-right2"><img src="../assets/sucai/sousuo.png" /></div>
                    </div>
                </div>
                <div class="box2rightcenter">
                    <div class="layOut1" @click="layOut1">
                        <img @click="Click1" id="box2rightcentertu1" v-if="lay_type1" src="../assets/sucai/fen11.png"
                            alt />
                        <img @click="Click1" id="box2rightcentertu1" v-else src="../assets/sucai/fen1.png" alt />
                    </div>
                    <div class="layOut2" @click="layOut2">
                        <img @click="Click2" id="box2rightcentertu2" v-if="lay_type2" src="../assets/sucai/fen22.png"
                            alt />
                        <img @click="Click2" id="box2rightcentertu2" v-else src="../assets/sucai/fen2.png" alt />
                    </div>
                    <div class="layOut3" @click="layOut3">
                        <img @click="Click3" id="box2rightcentertu3" v-if="lay_type3" src="../assets/sucai/fen33.png"
                            alt />
                        <img @click="Click3" id="box2rightcentertu3" v-else src="../assets/sucai/fen3.png" alt />
                    </div>

                    <!-- <img @click="Click1" id="box2rightcentertu1" src="../assets/sucai/fen1.png" />
                    <img @click="Click2" id="box2rightcentertu2" src="../assets/sucai/fen2.png" />
                    <img @click="Click3" id="box2rightcentertu3" src="../assets/sucai/fen3.png" /> -->
                </div>
                <div id="box2rightcontent" class="box2rightcontent1">
                    <ul>
                        <li>
                            <div class="neirong">
                                <div class="neirongleft"><img src="../assets/sucai/6.png" /></div>
                                <div class="neirongright">
                                    <div class="neirongright1">关于报送 2022 年部门重点工作和日常工作的通知</div>
                                    <div class="neirongright2">
                                        <div class="neirongright2-1"><img src="../assets/image/17.png" /></div>
                                        <div class="neirongright2-2">2021-10-19</div>
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="neirong">
                                <div class="neirongleft"><img src="../assets/sucai/6.png" /></div>
                                <div class="neirongright">
                                    <div class="neirongright1">关于报送 2022 年部门重点工作和日常工作的通知</div>
                                    <div class="neirongright2">
                                        <div class="neirongright2-1"><img src="../assets/image/17.png" /></div>
                                        <div class="neirongright2-2">2021-10-19</div>
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="neirong">
                                <div class="neirongleft"><img src="../assets/sucai/6.png" /></div>
                                <div class="neirongright">
                                    <div class="neirongright1">关于报送 2022 年部门重点工作和日常工作的通知</div>
                                    <div class="neirongright2">
                                        <div class="neirongright2-1"><img src="../assets/image/17.png" /></div>
                                        <div class="neirongright2-2">2021-10-19</div>
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="neirong">
                                <div class="neirongleft"><img src="../assets/sucai/6.png" /></div>
                                <div class="neirongright">
                                    <div class="neirongright1">关于报送 2022 年部门重点工作和日常工作的通知</div>
                                    <div class="neirongright2">
                                        <div class="neirongright2-1"><img src="../assets/image/17.png" /></div>
                                        <div class="neirongright2-2">2021-10-19</div>
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="neirong">
                                <div class="neirongleft"><img src="../assets/sucai/6.png" /></div>
                                <div class="neirongright">
                                    <div class="neirongright1">关于报送 2022 年部门重点工作和日常工作的通知</div>
                                    <div class="neirongright2">
                                        <div class="neirongright2-1"><img src="../assets/image/17.png" /></div>
                                        <div class="neirongright2-2">2021-10-19</div>
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="neirong">
                                <div class="neirongleft"><img src="../assets/sucai/6.png" /></div>
                                <div class="neirongright">
                                    <div class="neirongright1">关于报送 2022 年部门重点工作和日常工作的通知</div>
                                    <div class="neirongright2">
                                        <div class="neirongright2-1"><img src="../assets/image/17.png" /></div>
                                        <div class="neirongright2-2">2021-10-19</div>
                                    </div>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="box2rightbottom">
                    查看更多
                    <img src="../assets/image/4.png" />
                </div>
            </div>
        </div>

        <div class="foot">
            <div class="footcenter">
                <div class="footcenter1-center"><img src="../assets/sucai/xuexiao.png" /></div>
                <div class="footcenter-left">
                    <div class="footcenter-left-1">联系我们</div>
                    <div class="footcenter-left-2">
                        <table>
                            <tr>
                                <td>办公室</td>
                                <td>&nbsp;:&nbsp;&nbsp;0535-2246666</td>
                            </tr>
                            <tr>
                                <td>招生咨询</td>
                                <td>&nbsp;:&nbsp;&nbsp;0535-2246625</td>
                            </tr>
                            <tr>
                                <td>官网</td>
                                <td>&nbsp;:&nbsp;&nbsp;www.sdcc.edu.cn</td>
                            </tr>
                            <tr>
                                <td>邮箱</td>
                                <td>&nbsp;:&nbsp;&nbsp;sdccxy@126.com</td>
                            </tr>
                            <tr>
                                <td>校址</td>
                                <td>&nbsp;:&nbsp;&nbsp;山东省烟台市高新区海天路1001号</td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="footcenter-right">
                    <div class="footcenter-right-top">
                        <img class="footcenter-right1" src="../assets/sucai/weixin.png" /><br>官方微信
                    </div>
                    <div class="footcenter-right-bottom">
                        <img class="footcenter-right2" src="../assets/sucai/weibo.png" /><br>官方微博
                    </div>
                </div>
            </div>
            <div class="footbottom">Copyright 心山东省城市服务技师学院版权所有</div>
        </div>
    </div>
</template>

<style lang="scss">
#box {
    background-color: #f6fafd;

    .swiper {
        // margin-top: -94px;
        z-index: 1;

        .demo-item {
            width: 100%;
            height: 500px;

            @media (max-width:475px) {
                height: 200px;
            }

            img {
                width: 100%;
                height: 100%;
            }
        }
    }

    .box2 {
        width: 80%;
        margin: 0 auto 0;
        display: flex;
        justify-content: space-between;

        @media (max-width:475px) {
            width: 100%;
            display: block;
        }

        .box2left {
            width: 30%;
            height: 160px;
            background-color: #fff;
            border-radius: 15px;
            overflow: hidden;
            margin-top: -74px;
            z-index: 999;
            position: sticky;
            top: 0;

            @media (max-width:1024px) {
                display: none;
            }

            @media (max-width:475px) {
                display: none;
            }

            .box2left1 {
                background-color: #005bac;
                color: #fff;
                text-align: center;
                padding: 10px 0;

                .box2left1-1 {
                    font-size: 28px;
                }

                .box2left1-2 {
                    font-size: 14px;
                    color: #e7e6e6;
                }
            }

            .box2left2 {
                color: #4789cb;
                text-align: center;

                .box2left2-1 {
                    width: 90%;
                    margin: auto;
                    padding: 15px;
                    font-size: 24px;
                    border-bottom: 1px solid #ccc;
                    margin-bottom: 30px;
                }
            }
        }

        .box2right {
            width: 68%;
            background-color: #fff;

            @media (max-width:1024px) {
                width: 100%;
                background-color: #f6fafd;
            }

            .box2righttop {
                margin: auto;
                width: 95%;
                display: flex;
                padding: 10px 0;
                border-bottom: 1px solid #ccc;

                .box2righttop-left {
                    display: flex;
                    width: 30%;

                    @media (max-width:475px) {
                        width: 50%;
                    }

                    .box2righttop-left1 {
                        height: 20px;
                        margin-top: 10px;
                        margin-right: 10px;
                        box-sizing: border-box;

                        img {
                            width: 20px;
                            height: 20px;
                        }
                    }

                    .box2righttop-left2 {
                        color: #1c6db3;
                        font-size: 24px;
                        font-weight: bold;
                    }
                }

                .box2righttop-center {
                    width: 47%;
                    padding-top: 14px;
                    font-size: 14px;
                    text-align: right;

                    @media (max-width:475px) {
                        width: 70%;
                    }
                }

                .box2righttop-right {
                    width: 23%;
                    display: flex;
                    justify-content: right;
                    padding-top: 10px;

                    @media (max-width:475px) {
                        display: none;
                    }

                    .box2righttop-right1 {
                        input {
                            text-align: center;
                            outline: none;
                            border: 1px solid #ccc;
                            padding: 5px 0;
                        }
                    }

                    .box2righttop-right2 {
                        img {
                            width: 25px;
                            height: 25px;
                        }
                    }
                }
            }

            .box2rightcenter {
                width: 95%;
                margin: auto;
                display: flex;
                justify-content: right;
                padding: 10px 0;

                img {
                    margin-left: 15px;
                    width: 25px;
                    height: 25px;
                }
            }

            .box2rightcontent1 {
                width: 95%;
                margin: auto;

                ul {
                    li {
                        padding: 15px 0;
                        list-style-position: inside;
                        border-bottom: 1px solid #ccc;
                        padding-left: 20px;

                        .neirong {
                            width: 97%;
                            float: right;
                            display: flex;
                            justify-content: space-between;

                            @media (max-width:475px) {
                                width: 90%;
                            }

                            .neirongleft {
                                display: none;
                            }

                            .neirongright {
                                width: 100%;
                                display: flex;
                                justify-content: space-between;

                                // margin-left: 80px;
                                .neirongright1 {
                                    overflow: hidden;
                                    text-overflow: ellipsis;
                                    white-space: nowrap;

                                    @media (max-width:475px) {
                                        width: 70%;
                                    }
                                }

                                .neirongright2 {
                                    color: #7a7a7a;

                                    @media (max-width:475px) {
                                        width: 28%;
                                        text-align: right;

                                        .neirongright2-2 {
                                            overflow: hidden;
                                            text-overflow: ellipsis;
                                            white-space: nowrap;
                                        }
                                    }

                                    img {
                                        display: none;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            .box2rightcontent2 {
                width: 95%;
                margin: auto;

                ul {
                    list-style: none;
                    display: flex;
                    flex-wrap: wrap;
                    justify-content: space-between;

                    @media (max-width:475px) {
                        display: block;
                    }

                    li {
                        width: 49%;
                        box-shadow: 5px 5px 15px #ccc;
                        margin-bottom: 20px;

                        @media (max-width:475px) {
                            width: 100%;
                            margin: auto;
                            margin-bottom: 20px;
                            background-color: #fff;
                        }

                        .neirong {
                            width: 100%;

                            .neirongleft {
                                background-color: #f4f4f4;
                                text-align: center;
                                padding: 10px 0;
                            }

                            .neirongright {
                                width: 95%;
                                margin: auto;
                                height: 120px;

                                .neirongright1 {
                                    padding: 20px 0;
                                    border-bottom: 1px solid #ccc;
                                }

                                .neirongright2 {
                                    color: #7a7a7a;
                                    float: right;
                                    padding: 10px 0;
                                    display: flex;
                                    width: 100%;

                                    @media (max-width:475px) {
                                        justify-content: right;
                                    }

                                    .neirongright2-1 {
                                        img {
                                            width: 20px;
                                        }
                                    }

                                    .neirongright2-2 {}

                                }
                            }
                        }
                    }
                }
            }

            .box2rightcontent3 {
                width: 95%;
                margin: auto;

                ul {
                    list-style: none;


                    li {
                        width: 100%;
                        margin-bottom: 20px;

                        .neirong {
                            width: 100%;
                            display: flex;

                            .neirongleft {
                                background-color: #f4f4f4;
                                text-align: center;
                                width: 35%;
                                padding: 10px 0;

                                @media (max-width:475px) {
                                    height: 120px;
                                    background-color: #ecf0f3;
                                }

                                img {
                                    width: 140px;

                                    @media (max-width:475px) {
                                        width: 90px;
                                    }
                                }
                            }

                            .neirongright {
                                width: 70%;
                                margin: auto;
                                height: 120px;
                                margin-left: -20px;
                                background-color: #fff;
                                box-shadow: 5px 5px 15px #ccc;
                                padding: 10px 15px;

                                @media (max-width:475px) {
                                    height: 90px;
                                    padding: 10px 5px;
                                    box-sizing: border-box;
                                }

                                .neirongright1 {
                                    padding: 20px 0;

                                    @media (max-width:475px) {
                                        padding: 0;
                                    }
                                }

                                .neirongright2 {
                                    color: #7a7a7a;

                                    padding: 10px 0;
                                    display: flex;

                                    .neirongright2-1 {
                                        img {
                                            width: 20px;
                                        }
                                    }

                                    .neirongright2-2 {}

                                }
                            }
                        }
                    }
                }
            }

            .box2rightbottom {
                text-align: center;
                margin: 20px 0 30px;
                color: #c1bfbf;

                img {
                    width: 15px;
                    height: 15px;
                    -moz-transform: rotate(-180deg);
                    -webkit-transform: rotate(-180deg);
                }
            }
        }
    }

    .foot {
        background-image: url(../assets/sucai/4.jpg);
        padding-top: 20px;

        .footcenter {
            width: 80%;
            margin: auto;
            display: flex;
            border-bottom: 1px solid rgba(225, 225, 225, 0.6);

            @media (max-width:475px) {
                width: 90%;
                display: block;
            }

            .footcenter-left {
                width: 40%;
                color: #fff;

                @media (max-width:475px) {
                    width: 90%;
                    margin: auto;
                }

                .footcenter-left-1 {
                    font-size: 20px;
                    margin-bottom: 10px;
                }

                .footcenter-left-2 {
                    width: 100%;

                    table {
                        width: 100%;

                        tr {
                            margin-bottom: 20px;

                            td:nth-child(1) {
                                width: 20%;
                                text-align-last: justify;
                                text-align: justify;
                                text-justify: distribute-all-lines;
                                padding-bottom: 10px;
                            }

                            td:nth-child(2) {
                                width: 80%;
                                padding-bottom: 10px;
                            }
                        }
                    }
                }
            }

            .footcenter1-center {
                width: 35%;
                margin-top: 50px;
                margin-right: 40px;
                display: block;

                @media (max-width:475px) {
                    width: 100%;
                    margin-top: 10px;
                    margin-bottom: 30px;
                }

                img {
                    width: 100%;
                    height: 70px;

                    @media (max-width:475px) {
                        height: 60px;
                    }
                }
            }

            .footcenter-right {
                width: 25%;
                padding-top: 45px;
                box-sizing: border-box;
                display: flex;
                color: #fff;

                @media (max-width:475px) {
                    display: none;
                }

                .footcenter-right-top {
                    margin-right: 20px;

                    .footcenter-right1 {
                        width: 40px;
                        height: 40px;
                        // margin-right: 40px;
                        text-align: center;
                        margin-left: 10px;
                    }
                }

                .footcenter-right-bottom {
                    .footcenter-right2 {
                        width: 37px;
                        height: 36px;
                        margin-top: 5px;
                        text-align: center;
                        margin-left: 10px;
                    }
                }
            }
        }

        .footbottom {
            margin-top: 14px;
            color: rgba(255, 255, 255, 0.6);
            // background-color: rgba(0, 0, 0, 0.6);
            text-align: center;
            height: 40px;
            line-height: 40px;
            font-size: 13px;
        }
    }
}
</style>